﻿using Ledict.ConditionExtract.DAL;
using Ledict.ConditionExtract.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ledict.ConditionExtract.BLL
{
    public class CaseCauseWordBLL
    {
        CaseCauseWordDAL dal = new CaseCauseWordDAL();

        /// <summary>
        /// 获取关键词数据
        /// </summary>
        /// <param name="code"></param>
        /// <returns></returns>
        public DataSet GetCaseCauseWordData(string ccid)
        {
            return dal.GetCaseCauseWordData(ccid);
        }

        /// <summary>
        /// 增加一条数据
        /// </summary>
        public bool AddCaseCauseWord(CaseCauseWord model)
        {
            return dal.AddCaseCauseWord(model);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public bool DeleteCaseCauseWord(string CC_ID)
        {
            return dal.DeleteCaseCauseWord(CC_ID);
        }
    }
}
